export const LOGIN_CONF = {
  RULE_FORM: {
    userName: null,
    userPass: null,
    remember: true
  },

  RULES: {
    userName: [
      {
        required: true,
        message: '用户名不能为空',
        trigger: 'blur',
      },

    ],
    userPass: [
      {
        required: true,
        message: '用户名不能为空',
        trigger: 'blur',
      },
      {
        pattern: /^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9]+)$/,
        message: '密码中必须包含数字和字母',
        trigger: 'blur',
      },
      {
        min: 6,
        max: 25,
        message: '用户名长度为6-25',
        trigger: 'blur',
      },
    ]
  }
}